package com.sxu.spring_ioc.configuration;

import com.sxu.spring_ioc.model.UserInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class BeanConfig {
    @Bean
    public UserInfo userInfo(){
        return new UserInfo("zhangsan");
    }
    @Bean
    public UserInfo userInfo1(){
        return new UserInfo("lisi");
    }
    @Bean
    public UserInfo USERInfo(){
        return new UserInfo("wangwu");
    }
}

